import * as fs from 'fs'
import * as path from 'path'
import config from '../../config/Config'
import Models from '../../common/typings/model'
import jwt from 'jsonwebtoken'
import Koa from 'koa'
import moment from 'moment'
class DateUtils {
  static format(date: Date, pattern = 'YYYY-MM-DD HH:mm:ss') {
    return moment(date).format(pattern)
  }
}

export default DateUtils
